#include <stdio.h>

int main(void){
	int num = 0;
	printf("Enter a 3-digit number: ");
	scanf("%d", &num);
	int first = num/100;
	int second = (num - first*100)/10;
	int third = num - (first*100 + second*10);
	printf("THe reversal is: %d%d%d\n", third, second, first);
}
